/*******************************************************************************
 * Copyright (c) 2012 March and Conquest.
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ******************************************************************************/
package mrusanov.towers.configuration;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "configuration")
public class GameConfiguration {

	private String language;
	private String playerName;
	private String rememberedHost = "127.0.0.1";
	private int rememberedHostingPort = 8080;
	private int rememberedJoiningPort = 8080;
	private boolean soundsEnabled = false;

	private GamefieldConfiguration gamefieldConfiguration = new GamefieldConfiguration();

	@XmlElement(name = "language")
	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	@XmlElement(name = "playerName")
	public String getPlayerName() {
		return playerName;
	}

	public void setPlayerName(String playerName) {
		this.playerName = playerName;
	}

	@XmlElement
	public GamefieldConfiguration getGamefieldConfiguration() {
		return gamefieldConfiguration;
	}

	public void setGamefieldConfiguration(GamefieldConfiguration gamefieldConfiguration) {
		this.gamefieldConfiguration = gamefieldConfiguration;
	}

	@XmlElement
	public String getRememberedHost() {
		return rememberedHost;
	}

	public void setRememberedHost(String rememberedHost) {
		this.rememberedHost = rememberedHost;
	}

	@XmlElement
	public int getRememberedHostingPort() {
		return rememberedHostingPort;
	}

	public void setRememberedHostingPort(int rememberedHostingPort) {
		this.rememberedHostingPort = rememberedHostingPort;
	}

	@XmlElement
	public int getRememberedJoiningPort() {
		return rememberedJoiningPort;
	}

	public void setRememberedJoiningPort(int rememberedJoiningPort) {
		this.rememberedJoiningPort = rememberedJoiningPort;
	}

	@XmlElement
	public boolean isSoundsEnabled() {
		return soundsEnabled;
	}

	public void setSoundsEnabled(boolean soundsEnabled) {
		this.soundsEnabled = soundsEnabled;
	}

}
